﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Face8280WebSocketServer.Model.People
{
    [Table("FacePeople")]
    public class FacePeople
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [Required]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        /// <summary>
        /// 人员编号（数字<20位）
        /// </summary>
        public long EmployeeID { get; set; } //是
        /// <summary>
        /// 人员姓名（字符<32位）
        /// </summary>
        public string EmployeeName { get; set; } //是
        /// <summary>
        /// 职务
        /// </summary>
        public string EmployeeJob { get; set; } //否

        /// <summary>
        /// 密码，纯数字,长度：（0 / 4-8）
        /// </summary>
        public string EmployeePassword { get; set; } //否

        /// <summary>
        /// 照片格式”base”:bse64 编码字符，”path”:下载路径
        /// </summary>
        public string EmployeePhotoWay { get; set; } //是
        /// <summary>
        /// 照片
        /// </summary>
        public string EmployeePhoto { get; set; } //是
        /// <summary>
        /// IC卡号 纯数字
        /// </summary>
        public long EmployeeIC { get; set; } //否
        /// <summary>
        /// 联系方式
        /// </summary>
        public string EmployeePhone { get; set; } //否
        /// <summary>
        /// 人脸识别阈值，0:未设置，其他：阈值大小
        /// </summary>
        public float EmployeeShold { get; set; } //否
        /// <summary>
        /// 身份证信息
        /// </summary>
        public string EmployeeIdentity { get; set; } //否
        /// <summary>
        /// 地址信息
        /// </summary>
        public string EmployeeAddress { get; set; } //否

        /// <summary>
        /// 图片文件大小 字节
        /// </summary>
        public int PhotoLen { get; set; }


        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 最后更新时间 
        /// </summary>
        public DateTime LastUpdatetime { get; set; }

        public FacePeople()
        {
        }

        public FacePeople(int pID,string pName)
        {
            EmployeeID = pID;
            EmployeeName = pName;
        }
    }

    
}
